#!/usr/bin/env python
# coding:utf-8


from pandas_02_Viewing_Data import *

print '-----------------------------------------------------------------------------'
print df.get('A')
print '-----------------------------------------------------------------------------'
print df[0:3]
print '-----------------------------------------------------------------------------'
print df.loc[dates[0]]
print '-----------------------------------------------------------------------------'
print df.loc[:, ['A', 'B']]
print '-----------------------------------------------------------------------------'
print df.loc['20170102':'20170104', ['A', 'B']]
print '-----------------------------------------------------------------------------'
print df.loc['20170102', ['A', 'B']]
print '-----------------------------------------------------------------------------'
print df.loc[dates[0], 'A']
print df.at[dates[0], 'A']
print '-----------------------------------------------------------------------------'
print df.iloc[0]
print df.iloc[3:5, 0:2]
print df.iloc[1:3, :]
print df.iloc[:, 1:3]
print df.iloc[[1, 2, 4], [0, 2]]
print df.iloc[0, 0]
print df.iat[0, 0]
print '-----------------------------------------------------------------------------'
